<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>爱贝儿医</title>
	<link rel="stylesheet" href="http://demo.open.weixin.qq.com/jssdk/css/style.css?ts=1420774989">
	<script src="//res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
	<link rel="stylesheet" href="business/style/vote/style/reg.css">
    <script src="business/style/vote/js/jquery.min.js"></script>
	<script src="app/js/common.js"></script>
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
</head>
<body>
	<header>
		<div class="header_reg_txt"><img src="<?= G_SITE_CDN ?>/business/style/vote/style/reg_txt.png" alt="" /></div>
		<div class="reg_txt">最终推选出10位最美儿科医生奖<br />奖品：证书+奖品（价值一万元左右）<br />由嘉宾评委联合签名颁发“最美儿科医生”荣誉证书</div>
		<div class="header_reg_strp"><img src="<?= G_SITE_CDN ?>/business/style/vote/style/reg_step.png" alt="" /></div>
	</header>
	<form method="post" id="form1">
	<div class="content">
		<!--第一部分信息-->
		<div class="input one">
			<label for="" class="border">
				<input name="dc_name" type="text" placeholder="请输入TA的姓名"/>
			</label>
			<label for="" class="border">
				<input name="dc_tel" type="text" placeholder="联系方式"/>
			</label>
			<div class="textarea" class="border">
				<textarea id="dc_descript" name="dc_descript" rows="" cols="">简述最美儿医故事</textarea>
			</div>
			
		</div>
		<!--第一部分信息-->
		<!--选填人信息-->
		<div class="two input">
			<span>推荐人信息（选填）</span><br />
			<label for="" class="border">
				<input type="text" name="referer" placeholder="推荐人姓名"/>
			</label>
			<label for="" class="border">
				<input type="text" name="referer_tel" placeholder="推荐人联系方式"/>
			</label>
			<div class="Submit">
						<input type="submit" value="提交"/>
			</div>
		</div>
		<!--选填人信息-->
	</div>
	</form>
	<footer>
		<p class="p1">其他报名方式：</p>
		<p><span>电话报名：<span class="s1">400-825-8989</span></span></p>
		<p><span>邮箱报名：kefu@cyyz-health.com</span></p>
	</footer>
    <?php require 'app/templates/common/foot.html'; ?>
</body>
</html>
<script>
	$("input[type='submit']").click(function(){
		var dc_name = $.trim($("input[name='dc_name']").val());
		var dc_tel =  $.trim($("input[name='dc_tel']").val());
		var dc_descript = $.trim( $("#dc_descript").val());
		var referer =  $.trim($("input[name='referer']").val());
		var referer_tel = $.trim( $("input[name='referer_tel']").val());
		var tel_reg = $
		if(dc_name.length==0){
			alert("请输入推荐医生的姓名");
			return false;
		}
		if(dc_tel.length==0 && referer_tel.length==0){
			alert("请填写您的联系方式");
			return false;
		}
//
//		if(referer.length==0){
//			alert("请输入您的姓名！");
//			return false;
//		}
//		if(referer_tel.length==0){
//			alert("请输入您的联系方式！");
//			return false;
//		}
		$('#form1').submit();
	});

	$("label input").click(function(){
		$(this).children("input").val("");
		$(this).parent().addClass("labelH");
		$(this).css("color","#333")
	})
	
	$("label input").blur(function(){
		$(this).parent().removeClass("labelH");
		$(this).css("color","#A9A9A9")
	})
	$("textarea").click(function(){
		if($(this).val()=="简述最美儿医故事"){
			$(this).val("")
		}
		$(this).parent().addClass("labelH");
		$(this).css("color","#333")
	})
	$("textarea").blur(function(){
		if($(this).val().length==0){
			$(this).val("简述最美儿医故事")
		}
		$(this).parent().removeClass("labelH");
		$(this).css("color","#A9A9A9")
	})

	wx.config({
		debug: false,
		appId: '<?php echo $this->signPackage["appId"];?>',
		timestamp: <?php echo $this->signPackage["timestamp"];?>,
	nonceStr: '<?php echo $this->signPackage["nonceStr"];?>',
			signature: '<?php echo $this->signPackage["signature"];?>',
			jsApiList: [
		'onMenuShareAppMessage',
		'onMenuShareTimeline',
		'onMenuShareQQ',
		'onMenuShareWeibo',
		'onMenuShareQZone'
	]
	});
	title = '寻找最美儿科医师';
	desc = '发现生命之美，评选儿科之最';
	links = '';
	imgUrl = '<?= G_SITE_CDN ?>/business/img/logoRed2.png';
	weixinShare(title, desc, links, imgUrl);
</script>